﻿<%@ page title="" language="C#" masterpagefile="~/master/amc_app.master" autoeventwireup="true" inherits="pages_complaints, App_Web_pzmkbaed" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../App_Themes/main/addcustomer.css" rel="stylesheet" type="text/css" />
    <script src="../_scripts/app/complaint.js" type="text/javascript"></script>
    <link href="../App_Themes/main/PredSrhChgLoc.css" rel="stylesheet" type="text/css" />
    <script src="../_scripts/app/predictiveSrchProduct.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('.placeholderMenuItem_Clicked').removeClass('placeholderMenuItem_Clicked');
            $('#menuComplaints').attr('class', 'placeholderMenuItem_Clicked');
            $('input').val('');
            $('#txtScheduleDt').datepicker({ minDate: 0, dateFormat: "dd/mm/yy" }).datepicker("setDate", new Date());
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div id="addCustomerWizzard" class="addCustomerContentContainer">
    <div id="addCustomerForm" class="addCustomerFormContainer">
        <div class="addCustomerFormRowText" style="margin-top:5px;">
            Customer Details
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Customer Name</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtCustomerName" type="text" class="addCustomerFormInput" maxlength="199" onkeydown="$('#valCusName').text('');" />
            <div id="valCusName" class="validationAlert"></div>    
            </div>
        </div>
        <div class="addCustomerFormRow" style="height: 110px;margin-top: 2px;">
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Address</span>
            <div class="addCustomerFormInputDiv">
            <textarea id="txtCusAddress" class="StStng_GAnalyticsTxtA" onkeydown="$('#valCusAddress').text('');"></textarea>
            <div id="valCusAddress" class="validationAlert"></div>    
            </div>
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Route</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtRoute" type="text" class="addCustomerFormInput" maxlength="499" onkeydown="$('#valCusRoute').text('');" />
            <div id="valCusRoute" class="validationAlert"></div>    
            </div>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Location/City</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtLocation" type="text" class="addCustomerFormInput" maxlength="199" onkeydown="$('#valLocation').text('');" />
            <div id="valLocation" class="validationAlert"></div>    
            </div>
            <span class="addCustomerFormText" style="width: 120px;">Landmark</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtLandmark" type="text" class="addCustomerFormInput" maxlength="500" />
            <div id="valLandMark" class="validationAlert"></div>    
            </div>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText" style="width: 120px;">State</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtState" type="text" class="addCustomerFormInput" maxlength="100" />
            <div id="Div4" class="validationAlert"></div>    
            </div>
            <span class="addCustomerFormText" style="width: 120px;">Postcode</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtPostcode" type="text" class="addCustomerFormInput" maxlength="50" />
            <div id="Div5" class="validationAlert"></div>    
            </div>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Contact No</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtMobile" type="text" class="addCustomerFormInput" maxlength="50" onkeydown="$('#valMobile').text('');" />
            <div id="valMobile" class="validationAlert"></div>    
            </div>
            <span class="addCustomerFormText" style="width: 120px;">Email</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtEmail" type="text" class="addCustomerFormInput" maxlength="200" />
            <div id="Div12" class="validationAlert"></div>    
            </div>
        </div>
        <div class="addCustomerFormRowText" style="margin-top:5px;">
            Product Details
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Product Category</span>
            <div class="addCustomerFormInputDiv">
            <select id="ddlBrands" class="addCustomerFormInput" onchange="fnDisableTxtboxes(this);">
                <option value="0" selected="selected">Please Select</option>
                <option value="1">Air Conditioner</option>
                <option value="2">Battery</option>
                <option value="3">Freezer</option>
                <option value="4">Inverters / UPS</option>
                <option value="5">Water cooler</option>
                <option value="6">Water dispenser</option>
                <option value="7">Water heater</option>
            </select>
            <div id="valProductCate" class="validationAlert"></div>    
            </div>
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Product</span>
            <div id="divContainerPredictive" class="addCustomerFormInputDiv" style="position:relative;">
                <input id="txtProductName" type="text" class="addCustomerFormInput" style="font-size: 9px;padding: 8px;width: 213px;" onkeyup="javascript:fnPredictiveSearchLoadProductName(event, this, MainSearch_LocationRefresh,true);return submitButton(event,$('divGobtn'));" />
                <div id="valProductName" class="validationAlert"></div>
            </div>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText">Model No.</span>
            <div class="addCustomerFormInputDiv"><input id="txtModalNo" type="text" class="addCustomerFormInput" />
            </div>
            <span class="addCustomerFormText">Compressor S.no</span>
            <div class="addCustomerFormInputDiv"><input id="txtCompressorNo" type="text" class="addCustomerFormInput" />
            </div>
        </div>
        <div class="addCustomerFormRow">
            
            <span class="addCustomerFormText">Indoor S.no</span>
            <div class="addCustomerFormInputDiv"><input id="txtIndoorNo" type="text" class="addCustomerFormInput" />
            </div>
            <span class="addCustomerFormText">Outdoor S.no</span>
            <div class="addCustomerFormInputDiv"><input id="txtOutdoorNo" type="text" class="addCustomerFormInput" />
            </div>
        </div>
        <div class="addCustomerFormRow" style="height: 140px;margin-top: 2px; width:605px;">
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Complaint Description</span>
            <div class="addCustomerFormInputDiv">
            <textarea id="txtComplaint" class="StStng_GAnalyticsTxtA" style="height: 140px;margin-top: 2px; width:605px;" onkeydown="$('#valComplaintDesc').text('');"></textarea>
            <div id="valComplaintDesc" class="validationAlert"></div>    
            </div>
        </div>
        <div class="addCustomerFormRow" style="margin-top: 20px;">
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Scheduled on</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtScheduleDt" type="text" class="addCustomerFormInput" maxlength="50" />
            <div id="Div14" class="validationAlert"></div>    
            </div>
        </div>
    </div>
    <div class="addCustomerFormButtonContainer">
        <div class="adminGrayButton" onclick="window.location.href = '../../pages/complaintSummary.aspx';">Back</div>
        <div id="saveCustomerData" class="adminColorButton" onclick="saveComplaint();">Save Complaint</div>
    </div>
</div>

</asp:Content>

